<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <title>图书借阅系统 - 首页</title>
  <!-- 引入 Google Fonts 以使用更现代的字体 -->
  <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap" rel="stylesheet">
  <style>
    /* 全局样式 */
    body {
      font-family: 'Poppins', sans-serif;
      margin: 0;
      padding: 0;
      background-color: #f4f4f9;
      color: #333;
    }

    nav {
      background-color: rgba(44, 62, 80, 0.9);
      overflow: hidden;
      position: fixed;
      top: 0;
      width: 100%;
      z-index: 1000;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
      transition: background-color 0.3s ease;
    }

    nav ul {
      list-style-type: none;
      margin: 0;
      padding: 0;
      display: flex;
      justify-content: center;
    }

    nav ul li {
      margin: 0 10px;
    }

    nav ul li a {
      display: block;
      color: white;
      text-align: center;
      padding: 16px 20px;
      text-decoration: none;
      transition: background-color 0.3s ease, transform 0.3s ease;
      font-size: 16px;
    }

    nav ul li a:hover {
      background-color: #34495e;
      transform: scale(1.05);
    }

    .hero {
      background-image: url('https://images.unsplash.com/photo-1507842217343-583bb7270b66');
      background-size: cover;
      background-position: center;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      color: white;
      text-align: center;
      height: 100vh;
      padding-top: 50px;
      position: relative;
      z-index: 1;
      animation: fadeIn 1s ease;
    }

    @keyframes fadeIn {
      from {
        opacity: 0;
        transform: translateY(-20px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .hero::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.5);
      z-index: -1;
    }

    .hero h1 {
      font-size: 5em;
      margin-bottom: 20px;
      text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
      background: -webkit-linear-gradient(45deg, #fff, #007BFF);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      animation: slideInDown 1s ease;
    }

    @keyframes slideInDown {
      from {
        transform: translateY(-100px);
        opacity: 0;
      }
      to {
        transform: translateY(0);
        opacity: 1;
      }
    }

    .hero p {
      font-size: 2em;
      margin-bottom: 30px;
      text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
      animation: fadeInUp 1s ease;
    }

    @keyframes fadeInUp {
      from {
        transform: translateY(50px);
        opacity: 0;
      }
      to {
        transform: translateY(0);
        opacity: 1;
      }
    }

    .btn {
      background-color: #007BFF;
      color: white;
      padding: 18px 36px;
      text-decoration: none;
      border-radius: 8px;
      transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
      font-size: 1.4em;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
      animation: bounceIn 1s ease;
    }

    @keyframes bounceIn {
      0% {
        transform: scale(0.3);
        opacity: 0;
      }
      50% {
        transform: scale(1.1);
        opacity: 1;
      }
      100% {
        transform: scale(1);
      }
    }

    .btn:hover {
      background-color: #0056b3;
      transform: translateY(-5px);
      box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
    }
  </style>
  <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
</head>

<body>
<nav>
  <ul>
    <li><a href="http://localhost:8888/lib/hello">首页</a></li>
    <li><a href="http://localhost:8888/lib/book">图书列表</a></li>
    <li><a href="http://localhost:8888/lib/borrow">借阅记录</a></li>
    <li><a href="http://localhost:8888/lib/userinfo">用户信息</a></li>
    <li><a href="http://localhost:8888/api/outLogin">退出登录</a></li>
  </ul>
</nav>
<div class="hero full-screen">
  <h1>欢迎使用图书借阅系统</h1>
  <p>轻松管理图书借阅，畅享阅读乐趣</p>
  <a href="http://localhost:8888/lib/book" class="btn">查看图书列表</a>
</div>
</body>

</html>